//
//  NSLayoutConstraint+LLAdd.m
//  Receipt
//
//  Created by 刘玲玉 on 2019/4/12.
//  Copyright © 2019 LG. All rights reserved.
//

#import "NSLayoutConstraint+LLAdd.h"

@implementation NSLayoutConstraint (LLAdd)

- (void)setFixWidth:(BOOL)fixWidth
{
    if (fixWidth) {
        self.constant = self.constant * [UIScreen mainScreen].bounds.size.width / 375.0;
    } else {
        self.constant = self.constant;
    }
}

- (BOOL)fixWidth
{
    return self.fixWidth;
}

@end
